#ifndef CONFIGUREDIALOG_H
#define CONFIGUREDIALOG_H

#include <QDialog>
#include "bdaqctrl.h"

using namespace Automation::BDaq;

struct ConfigureParameter
{
 QString deviceName;
 int channelCount;
 int channelStart;
 ValueRange valueRange;
 int32 clockRatePerChan;
 int32 sectionLength;
 const wchar_t* profilePath;
};


namespace Ui {
class ConfigureDialog;
}

class ConfigureDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ConfigureDialog(QWidget *parent = nullptr);
    ~ConfigureDialog();
    void Initailization();
    void CheckError(ErrorCode errorCode);
    ConfigureParameter GetConfigureParameter(){return configure;}

private slots:
    void on_cmbDevice_currentIndexChanged(int index);

    void on_OKBtn_clicked();

    void on_cancelBtn_clicked();

private:
    Ui::ConfigureDialog *ui;
    ConfigureParameter configure;
};

#endif // CONFIGUREDIALOG_H
